package com.hyc.controller;

import com.hyc.entity.WorkSummary;
import com.hyc.service.IWorkSumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WorkSumController {
    @Autowired
    private IWorkSumService workSumService;

    @RequestMapping("work")
    public WorkSummary findById() {
        WorkSummary workSummary = workSumService.selectByPrimaryKey();
        return workSummary;
    }
}
